PEGetNGroupSortFields

Use PEGetNGroupSortFields to retrieve the number of group sort fields in the specified report. This function is typically used as one of a series of functions (PEGetNGroupSortFields called once; PEGetNthGroupSortField and PEGetHandleString called as many times as needed to identify the correct group sort field; and PESetNthAlertConditionFormula called once, when the correct group sort field is identified. The series can be used in a Custom-Print Link to identify and then change an existing group sort field and/or sort order in response to a user selection at print time.

C Syntax
short CRPE_API PEGetNGroupSortFields (
        short printJob );
Parameter

printJob

Specifies the print job for which you want to determine the number of contained sort fields.

Returns
VB Syntax

VB Sample Code for sorting groups

Declare Function PEGetNGroupSortFields Lib "crpe32.dll" ( _
    ByVal printJob As Integer ) As Integer
Delphi Syntax
function PEGetNGroupSortFields (
    printJob: Word
    ): Smallint stdcall;
dBASE for Windows Syntax
EXTERN CWORD PEGetNGroupSortFields (CWORD) CRPE.DLL


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com